package com.exam.system.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Description  题库类型实体类
 * @versions 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("题库类型实体类表")
public class ExamLibraryType {

    @ApiModelProperty("题库类型id，主键")
    private int id;
    @ApiModelProperty("题库类型名称")
    private  String quesBankTypeName;
    @ApiModelProperty("创建者id")
    private  int creatorId;//上级标签(顶级为0，上级标签存本表id)
    @ApiModelProperty("题库类型创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    @ApiModelProperty("题库类型修改时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;
    @ApiModelProperty("题库类型是否删除")
    private  String isdel;
    @ApiModelProperty("题库类型用于树状结构的父id")
    private Integer parentId;
    @ApiModelProperty("是否是父题库类型")
    private String isparent;
    @ApiModelProperty("父题库类型下的子题库类型")
    private List<ExamLibraryType> childlibraryType;
}
